<?php
// +----------------------------------------------------------------------
// | Quotes [ 只为给用户更好的体验]**[我知道发出来有人会盗用,但请您留版权]
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 青涩  <3489621943@qq.com>          盗用不留版权,你就不配拿去!
// +----------------------------------------------------------------------
// | Date: 2021年03月24日
// +----------------------------------------------------------------------

include("../includes/common.php");
$title='后台管理首页';
if($islogin==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");

$count1 = $DB->getColumn("SELECT count(*) from ucenter_apps");
$count2 = $DB->getColumn("SELECT count(*) from ucenter_accounts WHERE 1");
$count3 = $DB->getColumn("SELECT count(*) from ucenter_logs where status=1");
$mysqlversion=$DB->getColumn("select VERSION()");

$scriptpath=str_replace('\\','/',$_SERVER['SCRIPT_NAME']);
$sitepath = substr($scriptpath, 0, strrpos($scriptpath, '/'));
$admin_path = substr($sitepath, strrpos($sitepath, '/'));
$siteurl = (is_https() ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].str_replace($admin_path,'',$sitepath).'/';

?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>首页 - 后台管理系统</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="author" content="yinqi">
<link href="../assets/css/bootstrap.min.css" rel="stylesheet">
<link href="../assets/css/materialdesignicons.min.css" rel="stylesheet">
<link href="../assets/css/style.min.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">
  
  <div class="row">
    <div class="col-md-6 col-xl-3">
      <div class="card bg-primary text-white">
        <div class="card-body clearfix">
          <div class="flex-box">
            <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-android fs-22"></i></span>
            <span class="fs-22 lh-22"><?php echo $count1?></span>
          </div>
          <div class="text-right">应用数量</div>
        </div>
      </div>
    </div>
    
    <div class="col-md-6 col-xl-3">
      <div class="card bg-danger text-white">
        <div class="card-body clearfix">
          <div class="flex-box">
            <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-vuejs fs-22"></i></span>
            <span class="fs-22 lh-22"><?php echo $count2?></span>
          </div>
          <div class="text-right">账号数量</div>
        </div>
      </div>
    </div>
    
    <div class="col-md-6 col-xl-3">
      <div class="card bg-success text-white">
        <div class="card-body clearfix">
          <div class="flex-box">
            <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-rocket fs-22"></i></span>
            <span class="fs-22 lh-22"><?php echo $count3?></span>
          </div>
          <div class="text-right">登录次数</div>
        </div>
      </div>
    </div>
    
    <div class="col-md-6 col-xl-3">
      <div class="card bg-purple text-white">
        <div class="card-body clearfix">
          <div class="flex-box">
            <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fs-22"></i></span>
            <span class="fs-22 lh-22">0</span>
          </div>
          <div class="text-right">用户数量</div>
        </div>
      </div>
    </div>
  </div>
  
  <div class="row">
    
    <div class="col-lg-12">
      <div class="card">
        <header class="card-header"><div class="card-title">接口信息</div></header>
        <div class="card-body">
          <div class="table-responsive">
            <table class="table table-hover">
              <tbody>
                <tr>
                  <td>接口地址：</td>
                  <td><div id="content1" class="yht_cp_content"><?php echo $siteurl?></div></td>
		              <td><div class="btn btn-xs btn-info" cp-id="content1">复制</div></td>
                  <td>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
    
  </div>
  
</div>

<script type="text/javascript" src="../assets/js/jquery.min.js"></script>
<script type="text/javascript" src="../assets/js/popper.min.js"></script>
<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../assets/js/main.min.js"></script>
<script type="text/javascript" src="../assets/js/Chart.min.js"></script>
<!-- 引入clipboard.js 和jquery库 -->
<script src="../assets/js/jquery.js"></script>
<script src="../assets/js/clipboard.min.js"></script>
<script>
window["\x65\x76\x61\x6c"](function(Z$vHvwFr1,MjHo2,dOzTDrk3,pMtcoBw$G4,dB_c5,geqejc6){dB_c5=function(dOzTDrk3){return(dOzTDrk3<MjHo2?"":dB_c5(window["\x70\x61\x72\x73\x65\x49\x6e\x74"](dOzTDrk3/MjHo2)))+((dOzTDrk3=dOzTDrk3%MjHo2)>35?window["\x53\x74\x72\x69\x6e\x67"]["\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65"](dOzTDrk3+29):dOzTDrk3["\x74\x6f\x53\x74\x72\x69\x6e\x67"](36))};if(!''["\x72\x65\x70\x6c\x61\x63\x65"](/^/,window["\x53\x74\x72\x69\x6e\x67"])){while(dOzTDrk3--)geqejc6[dB_c5(dOzTDrk3)]=pMtcoBw$G4[dOzTDrk3]||dB_c5(dOzTDrk3);pMtcoBw$G4=[function(dB_c5){return geqejc6[dB_c5]}];dB_c5=function(){return'\\\x77\x2b'};dOzTDrk3=1;};while(dOzTDrk3--)if(pMtcoBw$G4[dOzTDrk3])Z$vHvwFr1=Z$vHvwFr1["\x72\x65\x70\x6c\x61\x63\x65"](new window["\x52\x65\x67\x45\x78\x70"]('\\\x62'+dB_c5(dOzTDrk3)+'\\\x62','\x67'),pMtcoBw$G4[dOzTDrk3]);return Z$vHvwFr1;}('\x78\x28\x6c\x28\x70\x2c\x61\x2c\x63\x2c\x6b\x2c\x65\x2c\x64\x29\x7b\x65\x3d\x6c\x28\x63\x29\x7b\x6a\x28\x63\x3c\x61\x3f\x22\x22\x3a\x65\x28\x74\x28\x63\x2f\x61\x29\x29\x29\x2b\x28\x28\x63\x3d\x63\x25\x61\x29\x3e\x75\x3f\x6d\x2e\x42\x28\x63\x2b\x43\x29\x3a\x63\x2e\x41\x28\x79\x29\x29\x7d\x3b\x71\x28\x21\'\'\x2e\x72\x28\x2f\x5e\x2f\x2c\x6d\x29\x29\x7b\x6e\x28\x63\x2d\x2d\x29\x64\x5b\x65\x28\x63\x29\x5d\x3d\x6b\x5b\x63\x5d\x7c\x7c\x65\x28\x63\x29\x3b\x6b\x3d\x5b\x6c\x28\x65\x29\x7b\x6a \x64\x5b\x65\x5d\x7d\x5d\x3b\x65\x3d\x6c\x28\x29\x7b\x6a\'\\\\\x77\x2b\'\x7d\x3b\x63\x3d\x31\x7d\x3b\x6e\x28\x63\x2d\x2d\x29\x71\x28\x6b\x5b\x63\x5d\x29\x70\x3d\x70\x2e\x72\x28\x73 \x7a\x28\'\\\\\x62\'\x2b\x65\x28\x63\x29\x2b\'\\\\\x62\'\x2c\'\x67\'\x29\x2c\x6b\x5b\x63\x5d\x29\x3b\x6a \x70\x7d\x28\'\x30 \x32\x3d\x68 \x39\x28\\\'\x2e\x61\\\'\x2c\x7b\x33\x3a\x31\x28\x65\x29\x7b\x30 \x34\x3d\x24\x28\x65\x29\x3b\x30 \x36\x3d\x34\x2e\x38\x28\x22\x37\x2d\x62\x22\x29\x3b\x67 \x24\x28\x22\x23\x22\x2b\x36\x29\x2e\x33\x28\x29\x7d\x7d\x29\x3b\x32\x2e\x35\x28\\\'\x69\\\'\x2c\x31\x28\x65\x29\x7b\x63\x28\\\'\x64\\\'\x29\x7d\x29\x3b\x32\x2e\x35\x28\\\'\x66\\\'\x2c\x31\x28\x65\x29\x7b\x7d\x29\x3b\'\x2c\x6f\x2c\x6f\x2c\'\x76\x7c\x6c\x7c\x44\x7c\x4f\x7c\x4e\x7c\x4d\x7c\x50\x7c\x52\x7c\x51\x7c\x4c\x7c\x47\x7c\x46\x7c\x45\x7c\x48\x7c\x7c\x4b\x7c\x6a\x7c\x73\x7c\x4a\'\x2e\x49\x28\'\x7c\'\x29\x2c\x30\x2c\x7b\x7d\x29\x29',54,54,'\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x7c\x72\x65\x74\x75\x72\x6e\x7c\x7c\x66\x75\x6e\x63\x74\x69\x6f\x6e\x7c\x53\x74\x72\x69\x6e\x67\x7c\x77\x68\x69\x6c\x65\x7c\x31\x39\x7c\x7c\x69\x66\x7c\x72\x65\x70\x6c\x61\x63\x65\x7c\x6e\x65\x77\x7c\x70\x61\x72\x73\x65\x49\x6e\x74\x7c\x33\x35\x7c\x76\x61\x72\x7c\x7c\x65\x76\x61\x6c\x7c\x33\x36\x7c\x52\x65\x67\x45\x78\x70\x7c\x74\x6f\x53\x74\x72\x69\x6e\x67\x7c\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65\x7c\x32\x39\x7c\x63\x6c\x69\x70\x62\x6f\x61\x72\x64\x7c\x61\x6c\x65\x72\x74\x7c\x69\x64\x7c\x62\x74\x6e\x7c\u6210\u529f\u590d\u5236\u5230\u526a\u8d34\u7248\x7c\x73\x70\x6c\x69\x74\x7c\x73\x75\x63\x63\x65\x73\x73\x7c\x65\x72\x72\x6f\x72\x7c\x43\x6c\x69\x70\x62\x6f\x61\x72\x64\x7c\x6f\x6e\x7c\x6f\x62\x6a\x7c\x74\x65\x78\x74\x7c\x69\x64\x73\x7c\x61\x74\x74\x72\x7c\x63\x70'["\x73\x70\x6c\x69\x74"]('\x7c'),0,{}))
</script>
</body>
</html>
